package mylab.starters.security.config;

import lombok.extern.slf4j.Slf4j;
import mylab.starters.security.config.cors.CorsConfiguration;
import mylab.starters.security.config.csrf.CsrfConfiguration;
import mylab.starters.security.config.xss.XssConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Import;

import jakarta.annotation.PostConstruct;

@Slf4j
@Import({
        CsrfConfiguration.class,
        CorsConfiguration.class,
        XssConfiguration.class
})
@EnableConfigurationProperties({SecurityProperties.class})
public class SecurityConfiguration {

    @PostConstruct
    void init() {
        log.info("Init SecurityConfiguration");
    }
}
